22 #define foreach(x, v) for (typeof (v).begin() x = (v).begin(); x != (v).end(); ++x)
23 #define D(x) cout << #x " is " << x << endl
25 const int MAXN
= 50000;
30 for (long long i
=1; i
<=MAXN
; ++i
){
31 s
[i
] = s
[i
-1] + i
*i
*i
;
35 while (scanf("%d", &n
)) printf("%lld\n", s
[n
]);